package org.misalen.web.database.model.mysql.pro;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.misalen.annotations.ModelComment;
import org.misalen.web.database.model.mysql.BaseSqlModel;

/**
 * 网页广告内容
 * 
 * @author jianhun
 *
 */
@Entity
@Table(name = "ProWebReward")
@DynamicInsert(true)
@DynamicUpdate(true)
public class ProWebReward extends BaseSqlModel {

	@ModelComment("网页广告id")
	@Column(name = "webId", nullable = false)
	private String webId;

	@ModelComment("用户id")
	@Column(name = "userId")
	private String userId;

	@Transient
	@ModelComment("用户名")
	private String userName;
	
	@ModelComment("金额(分)")
	@Column(name = "money", nullable = false)
	private Integer money;

	@ModelComment("抢到的时间")
	@Column(name = "getTime")
	private Date getTime;
	
	@ModelComment("是否有人点击分分享链接")
	@Column(name = "timeLimit", nullable = false)
	private String timeLimit;
	
	public String getTimeLimit() {
		return timeLimit;
	}


	public void setTimeLimit(String timeLimit) {
		this.timeLimit = timeLimit;
	}


	/**  
	 * 获取webId  
	 * @return webId webId  
	 */
	public String getWebId() {
		return webId;
	}
	

	/**  
	 * 设置webId  
	 * @param webId webId  
	 */
	public void setWebId(String webId) {
		this.webId = webId;
	}
	

	/**  
	 * 获取userId  
	 * @return userId userId  
	 */
	public String getUserId() {
		return userId;
	}
	

	/**  
	 * 设置userId  
	 * @param userId userId  
	 */
	public void setUserId(String userId) {
		this.userId = userId;
	}
	

	/**  
	 * 获取money  
	 * @return money money  
	 */
	public Integer getMoney() {
		return money;
	}
	

	/**  
	 * 设置money  
	 * @param money money  
	 */
	public void setMoney(Integer money) {
		this.money = money;
	}
	

	/**  
	 * 获取getTime  
	 * @return getTime getTime  
	 */
	public Date getGetTime() {
		return getTime;
	}
	

	/**  
	 * 设置getTime  
	 * @param getTime getTime  
	 */
	public void setGetTime(Date getTime) {
		this.getTime = getTime;
	}


	public String getUserName() {
		return userName;
	}


	public void setUserName(String userName) {
		this.userName = userName;
	}
	
}
